package com.mtwp.dfs.domain.region;

import lombok.Data;

import javax.persistence.*;
import java.util.Date;
import java.util.Set;

/*
省份信息表
 */

@Data
@Entity
@Table(name = "dfs_provinces")
public class Province {

    /**
     * 更新时间
     */
    @Column(name = "updateTime")
    private Date updateTime;

    /**
     * 创建时间
     */
    @Column(name = "createTime")
    private Date createTime;
    /**
     * 编号
     */
    @Id
    private Integer id;

    private String provinceid;
    private String province;

    @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY,mappedBy = "province")
    private Set<City> cities;
}
